
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <%
      String url = request.getContextPath();
  %>
  <head>
    <meta charset="utf-8">
    <title>登录注册忘记密码页面</title>

    <link rel="stylesheet" href="<%=url %>/css/normalize.css">
    <link rel="stylesheet" href="<%=url %>/css/style.css">

  </head>

  <body>

  <div id="formContainer" class="dwo">
    <div class="formLeft">
      <img src="<%=url %>/images/avatar.jpg">
    </div>
    <div class="formRight">
      <!-- Forgot password form -->
      <form id="forgot" class="otherForm">
        <header>
          <h1>忘记密码</h1>
          <p>输入邮箱找回密码</p>
        </header>
        <section>
          <label>
            <p>邮箱</p>
            <input type="email" placeholder=" ">
            <div class="border"></div>
          </label>
          <button type="submit">发送邮件</button>
        </section>
        <footer>
          <button type="button" class="forgotBtn">返回</button>
        </footer>
      </form>

      <!-- Login form -->
      <form id="login" method="post" action="login">
        <header>
          <h1>欢迎回来</h1>
          <p>请先注册再登录</p>

        </header>
        <section>
          <label>
            <p>用户名</p>
            <input type="text" placeholder=" " name="uname">
            <div class="border"></div>
          </label>
          <label>
            <p>密码</p>
            <input type="password" placeholder=" " name="upassword">
            <div class="border"></div>
          </label>
          </label>
          <input type=radio name="type" value="学生" checked>学生</br></br>
          <input type=radio name="type" value="教师">教师</br>

          <div class="border"></div>
          </label>
          <button type="submit">登 录</button>
        </section>
        <footer>
          <button type="button" class="forgotBtn">忘记密码？</button>
          <button type="button" class="registerBtn">新用户？</button>
        </footer>
      </form>

      <!-- Register form -->
      <form id="register" class="otherForm" method="post" action="searchUser">
        <header>
          <h1>用户注册</h1>
          <p>注册后享受更多服务</p>
        </header>
        <section>
          <label>
            <p>用户名</p>
            <input type="text" placeholder=" " name="uname">
            <div class="border"></div>
          </label>

              <input type=radio name="type" value="教师">教师</br></br>
              <input type=radio name="type" value="学生" checked>学生
            <%--<p>邮箱</p>
            <input type="email" placeholder=" " name="uemail">--%>
            <div class="border"></div>
          </label>
            <br>
          <label>
            <p>密码</p>
            <input type="password" placeholder=" " name="upassword">
            <div class="border"></div>
          </label>
         <%-- <label>
            <p>重复密码</p>
            <input type="password" placeholder=" " name="agupassword">
            <div class="border"></div>
          </label>--%>
          <button type="submit">注 册</button>
        </section>
        <footer>
          <button type="button" class="registerBtn">返回</button>
        </footer>
      </form>
    </div>
  </div>
  <script src="<%=url %>/js/jquery.js"></script>
  <script src="<%=url %>/js/script.js"></script>
  </body>
<script>
   var error='<%=request.getParameter("error")%>';
  if(error=='yes'){
      alert("登录失败");
  }
</script>
</html>
